import {request} from 'umi';
import {modulesUrl} from "@/assets/constant/modulesUrl";
import {getApiPrefix} from "@/assets/utils/utils";

/**
 * 获取当前用户
 * @param params
 */
export async function menuIdListByRoleId(id?:string) {
  return request(getApiPrefix(modulesUrl.sysRole) + "/menuIdListByRoleId", {
    params:{
      id:id
    }
  });
}
